package cn.itcast.demo03;

/*
计算阶乘
 */
public class DemoJc {
    public static void main(String[] args) {
        System.out.println(  jc(50));
    }

    private static int jc(int n) {
        if (n == 1) {
            return 1;
        }
        return n * jc(n - 1);
    }
}
